/*
 * TrackPoint.java
 *
 * Created on 20 f�vrier 2008, 14:40
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.great.beans;

import java.util.Date;
import java.sql.Timestamp;

/**
 *
 * @author defautce
 */
public class TrackPoint extends Point{
        
/** method description
* @param var signification
* @exception exception class name
* @return return_value return signification
* @see package.class#member label
*/
    private int idTrackpoint;
    private Timestamp instant;// java sql type
    
     public void setDateTime(Date d){
        this.instant =new Timestamp(d.getTime());
    }
    
    public Date getDateTime(){
        return this.instant;
    }
    
    public Timestamp getInstant() {
        return instant;
    }

    public void setInstant(Timestamp Instant) {
        this.instant = Instant;
    }
    
    public String getTrackPointCoordinateAsString() {
        return "Point("+this.getLatitude()+" "+this.getLongitude()+")";
    }

    public int getIdTrackpoint() {
        return idTrackpoint;
    }

    public void setIdTrackpoint(int idTrackpoint) {
        this.idTrackpoint = idTrackpoint;
    }
    
}
